.\" libzip.mdoc -- general overview of available functions
.\" Copyright (C) 2005-2011 Dieter Baron and Thomas Klausner
.\"
.\" This file is part of libzip, a library to manipulate ZIP archives.
.\" The authors can be contacted at <libzip@nih.at>
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\"    notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\"    notice, this list of conditions and the following disclaimer in
.\"    the documentation and/or other materials provided with the
.\"    distribution.
.\" 3. The names of the authors may not be used to endorse or promote
.\"    products derived from this software without specific prior
.\"    written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS
.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY
.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
.\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
.\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.Dd February 14, 2011
.Dt LIBZIP 3
.Os
.Sh NAME
.Nm libzip
.Nd library for manipulating zip archives
.Sh LIBRARY
libzip (-lzip)
.Sh SYNOPSIS
.In zip.h
.Sh DESCRIPTION
.Nm
is a library for reading, creating, and modifying zip archives.
.Pp
Below there are two sections listing functions: one for how to read
from zip archives and one for how to create/modify them.
.Sh READING ZIP ARCHIVES
.Ss open archive
.Xr zip_open 3
.Xr zip_fdopen 3
.Ss find files
.Xr zip_name_locate 3
.Ss read files
.Xr zip_fopen 3
.Xr zip_fopen_encrypted 3
.Xr zip_fopen_index 3
.Xr zip_fopen_index_encrypted 3
.Xr zip_fread 3
.Xr zip_fclose 3
.Ss close archive
.Xr zip_close 3
.Ss miscellaneous
.Xr zip_stat 3
.Xr zip_get_archive_comment 3
.Xr zip_get_archive_flag 3
.Xr zip_get_file_comment 3
.Xr zip_get_name 3
.Xr zip_get_num_entries 3
.Xr zip_set_default_password 3
.Sh CREATING/MODIFYING ZIP ARCHIVES
.Ss create/open archive
.Xr zip_open 3
.Ss add/change files and directories
.Xr zip_add 3
.Xr zip_add_dir 3
.Xr zip_replace 3
.Xr zip_set_file_comment 3
.Xr zip_source_buffer 3
.Xr zip_source_file 3
.Xr zip_source_filep 3
.Xr zip_source_function 3
.Xr zip_source_zip 3
.Xr zip_source_free 3
.Ss rename files
.Xr zip_rename 3
.Ss delete files
.Xr zip_delete 3
.Ss revert changes
.Xr zip_unchange 3
.Xr zip_unchange_all 3
.Xr zip_unchange_archive 3
.Ss close archive
.Xr zip_close 3
.Ss miscellaneous
.Xr zip_set_archive_comment 3
.Xr zip_set_archive_flag 3
.Sh ERROR HANDLING
.Xr zip_error_to_str 3
.Xr zip_strerror 3
.Xr zip_file_strerror 3
.Xr zip_error_get 3
.Xr zip_error_get_sys_type 3
.Xr zip_errors 3
.Sh AUTHORS
.An -nosplit
.An Dieter Baron Aq dillo@giga.or.at
and
.An Thomas Klausner Aq tk@giga.or.at
